<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>尺寸[溢出]与单位</title>
		<style>
			div{
				/* 单位：px   %   PC端 */
			/* 	width: 100%;
				height: 100%;   /* ？高度   div元素:区域---有宽没高 */
				/* background: red; */ */
				/* overflow溢出属性 */
				div{
					width: 400px;
					height: 100px;
					border: 1px solid red;
					/* background:red */
					/* overflow: auto; */   /* 溢出：隐藏   hidden
					                       溢出加滚动条sroll
										   自动加滚动条auto
					 */
					overflow-x: scroll;
					/* overflow-y: scroll; */
				}
				p{
					width: 800px;
				}
			}
		</style>
	</head>
	<body>
		<!-- div理解为水杯 -->
		<div>
			<!-- p理解为水杯 -->
			<img src="img/img/p_small_001.jpg" alt="1" />
			<img src="img/img/p_small_002.jpg" alt="2" />
			<img src="img/img/p_small_003.jpg" alt="3" />
			<img src="img/img/p_small_004.jpg" alt="4" />
			<img src="img/img/p_small_005.jpg" alt="5" />
			<img src="img/img/p_small_006.jpg" alt="6" />
			<img src="img/img/p_small_007.jpg" alt="7" />
			</p>
		</div>
		<!-- <div></div> -->
	</body>
</html>